package com.dfiov.cloud.msmtools.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author gaopin
 */
@Data
@ApiModel(value = "Status对象",description = "Status对象")
public class Status implements Serializable {

    @ApiModelProperty(value = "状态码")
    private String code;

    @ApiModelProperty(value = "状态描述")
    private String description;

    public Status(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public Status() {
    }

    public static Status success() {
        return new Status("0", "操作成功");
    }
}
